import http from '../../../http/http'
import * as url from '../../../http/api'

const state = {

};
const actions = {
    getPageWage({commit},obj){
        return http({
            url:url.wageManagementPage,
            method:'post',
            data:obj,
        }).then(resp=>{
            return resp.data
        }).catch(err=>{
            console.log(err)
        })
    },
    selectWage({commit},obj){
        return http({
            url:url.wageManagementSelect,
            method:'post',
            data:obj,
        }).then(resp=>{
            return resp.data
        }).catch(err=>{
            console.log(err)
        })
    },
    reviseSalaryWage({commit},obj){
        return http({
            url:url.wageManagementUpdate,
            method:'post',
            data:obj,
        }).then(resp=>{
            return resp.data
        }).catch(err=>{
            console.log(err)
        })
    },
    provideSalaryWage({commit},obj){
        console.log(obj)
        // return http({
        //     url:'',
        //     method:'post',
        //     data:obj,
        // }).then(resp=>{
        //     console.log(resp)
        // }).catch(err=>{
        //     console.log(err)
        // })
    },
};
const mutations = {

};
export default{
    state,
    actions,
    mutations
}